package com.kee.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kee.server.enums.EnabledChangeEnum;
import com.kee.server.pojo.Admin;
import com.kee.server.pojo.RespBean;
import com.kee.server.pojo.Role;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kee
 * @since 2021-03-22
 */
public interface IAdminService extends IService<Admin> {

    RespBean login(String username, String password, String code, HttpServletRequest request);

    Admin getAdminByUserName(String name);

    void updateAdminInfo(String adminStr);

    List<Role> getRoles(Integer adminId);

    void updateAdminRole(Integer adminId, String rids);

    EnabledChangeEnum enabledChange(Map<String, Object> admin);

    List<Role> selectAllRoleList();

    List<Admin> selectAdminList(String keywords);

    void deleteAdminById(Integer id);

    void updatePassword(Map<String, Object> ruleForm);
}
